import request from "@/utils/request";

export const loginApi = (values) => {
    return request.post("/user/login", values);

}
export const registerApi = (values) => {
    return request.post("/user/register", values);
}

export const ArticleApi = (values) => {
    return request.get("/interview/query", {
        params: values
    })
}

export const getDetail = (values) => {
    return request.get("/interview/show", {
        params: {
            id: values
        }
    })
}

export const likeApi = (values) => {
    return request.post("/interview/opt", values)
}

export const collectApi = (values) => {
    return request.post("/interview/opt", values)
}

export const collectList = (values) => {
    return request.get("/interview/opt/list", {
        params: values
    })
}
// 获取用户信息
export const getUserInfo = () => {
    return request('/user/currentUser')
}
export default request